<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTDXHTML1.0Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ody>
<head>
	<title>%title% - %item%</title>
</head>
<IF:simple>
<body>
	<b>Type</b>: %type%<br />
	<b>Difficulty</b>: %difficulty%<br />
	<b>Terrain</b>: %terrain%<br />
	<b>Size</b>: %size%<br />
	<b>Author</b>: %author%<br />
	<b>Waypoint</b>: %waypoint%<br />
	<b>Coordinates</b>: %coordinates%<br />
</body>
</IF:simple>
<IF:listing>
<body>
	<IF:shortdesc>%shortdesc%<br /></IF:shortdesc>
	%longdesc%
</body>
</IF:listing>
<IF:hint>
<body>
	<p>%hinttext%</p>
</body>
</IF:hint>
<IF:logs>
<body>
	<LOOP:LOOP_LOG>
		<p><img src="%SERVICE_URL%/images/%icon%"> %date% %author% %log%</p>
	</LOOP:LOOP_LOG>
	<IF:offset>
		<a href="%SERVICE_URL%?_state=detail;item=logs;guid=%href%;offset=%offset%" class="listItem">Next 10 logs</a>
	</IF:offset>
</body>
</IF:logs>
<IF:logvisit>
<body class="form">
	<form action="%SERVICE_URL%" method="post">
		<fieldset>
			<input type="hidden" name="_state" value="logvisit" />
			<input type="hidden" name="logid" value="%logid%" />
			<input type="hidden" name="guid" value="%href%" />
			<input type="hidden" name="viewstate" value="%__VIEWSTATE%" />
			<label for="type">Type of log:</label><br />
          		<select name="logType">
					<option value="2">Found it</option>
					<option value="3">Didn't find it</option>
					<option value="4">Write note</option>
					<option value="7">Needs Archived</option>
					<option value="45">Needs Maintenance</option>
				</select>
			<label for="date">Date:</label><br />
          		<select name="logDate">
          			<LOOP:LOOP_LOGDATE>
						<option value="%value%" <IF:selected>selected="selected"</IF:selected>>%date%</option>
					</LOOP:LOOP_LOGDATE>
				</select>
			<label for="text">Text of log:</label><br />
			<textarea name="logText"></textarea><br />
			<IF:LOOP_MYTBS>
			<label for="TB">Dropped Off Travel Bug?</label><br />
				<select name="logTB">
          				<LOOP:LOOP_MYTBS>
						<option value="%value%">%desc%</option>
					</LOOP:LOOP_MYTBS>
				</select>
			</IF:LOOP_MYTBS>
         	<input type="submit" value="Log Your Visit" /><br />
		</fieldset>
    </form>
</body>
</IF:logvisit>
<IF:aw>
<body>
	<LOOP:LOOP_AWS>
		<p>
			%lookup% - %name%<br />
			<IF:note><i>%note%</i><br /></IF:note>
			<a href="%SERVICE_URL%?_state=awkml;guid=%href%;awid=%awid%" class="listItem">Download</a>
			<a href="locify://navigation?lat=%lat%&lon=%lon%&name=%name%" class="listItem">Navigate</a>
			<a href="locify://maps?lat=%lat%&lon=%lon%&name=%title%&desc=Geocache" class="listItem">Map</a>
		</p>
	</LOOP:LOOP_AWS>
</body>
</IF:aw>
<IF:tb>
<body class="list">
	<ul>
	<LOOP:LOOP_TBS>
		<li>
			<IF:img><img src="%img%" /></IF:img>
			<a href="%SERVICE_URL%?_state=showtb;wid=%wid%;guid=%href%" class="listItem">%name%</a>
		</li>
	</LOOP:LOOP_TBS>
	</ul>
</body>
</IF:tb>
</html>